﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestVisioCanvas.Helpers;

using Visio = Microsoft.Office.Interop.Visio;

namespace TestVisioCanvas.Wrappers
{	
    /// <summary>
    /// Represents a product sold by the company, described from a Standard visio shape that
    /// represents the 2D CAD drawing of the product and its sell details
    /// </summary>
    public class SellableShape : DWGShape
    {
        private Models.ProductDetailsModel details;

        /// <summary>
        /// Constructor of the class
        /// </summary>
        /// <param name="Shape"></param>
        /// <param name="ProductDetails"></param>
        public SellableShape(Visio.Shape Shape, Models.ProductDetailsModel ProductDetails )
            : base(Shape, ProductDetails.Width, ProductDetails.Lenght)
        {
            details = ProductDetails;
        }
        
        /// <summary>
        /// Property that exposes the details of the product.
        /// </summary>
        public Models.ProductDetailsModel ProductDetails
        {
            get { return details; }            
        }
    }
}
